www.gusucode.com > 基于Matlab的MIMO通信系统仿真 含报告;司中威;了解移动通信 > 基于Matlab的MIMO通信系统仿真 含报告;司中威;了解移动通信关键技术,了解数字通信系统仿真流程,实现基本的信道编译码、调制解调等通信模块。(好评如潮,课设拿满) 学习并实现MIMO空时处理技术 学习性能分析的思路和方法/mimo/matlab for mimo 2x2/int2hex.m

    

function x_hex=int2hex(x_int)

x_rem=x_int;

Bits=zeros(1,32);

% Obtain 32bit-pattern


ip=1;
for i1=31:-1:0
   if ~(x_rem<(2^i1))
     Bits(ip)=1;
     x_rem=x_rem-(2^i1);
   end;   
   ip=ip+1;
end;

pstrings=['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'];
x_hex=[];
for i1=0:7
  start=1+(i1*4);
  stop=start+3;
  temp=sum(Bits(start:stop).*(2.^[3,2,1,0]));
  x_hex=[x_hex,pstrings(temp+1)];
end;